package repository

import (
	"github.com/RaymondCode/simple-demo/entity/po"
	"gorm.io/gorm"
)

type Feed interface {
	// InsertBatch 批量插入
	InsertBatch(feeds *[]po.Feed, tx *gorm.DB, isTx bool) error
	// QueryByCondition 条件查询
	QueryByCondition(feed *po.Feed) ([]po.Feed, error)
	// DeleteByCondition 批量删除
	DeleteByCondition(feed *[]po.Feed, yx *gorm.DB, isTx bool) error
}